package com.boot.security.server.model;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "用户数据")
public class SysUser extends BaseEntity<Long> {

	private static final long serialVersionUID = -6525908145032868837L;

	@ApiModelProperty(value = "用户名")
	private String username;
	private String password;
	@ApiModelProperty(value = "用户昵称")
	private String nickname;
	@ApiModelProperty(value = "用户头像地址")
	private String headImgUrl;
	@ApiModelProperty(value = "用户手机号")
	private String phone;
	@JsonIgnore
	private String telephone;
	private String email;
	@JsonIgnore
	private Date birthday;
	@JsonIgnore
	private Integer sex;
	@ApiModelProperty(value = "用户状态 1正常 2锁定")
	private Integer status;
	@JsonIgnore
	private String intro;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getHeadImgUrl() {
		return headImgUrl;
	}

	public void setHeadImgUrl(String headImgUrl) {
		this.headImgUrl = headImgUrl;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public interface Status {
		int DISABLED = 0;
		int VALID = 1;
		int LOCKED = 2;
	}

	@Override
	public String toString() {
		return "SysUser{" +
				"username='" + username + '\'' +
				", password='" + password + '\'' +
				", nickname='" + nickname + '\'' +
				", headImgUrl='" + headImgUrl + '\'' +
				", phone='" + phone + '\'' +
				", telephone='" + telephone + '\'' +
				", email='" + email + '\'' +
				", birthday=" + birthday +
				", sex=" + sex +
				", status=" + status +
				", intro='" + intro + '\'' +
				'}';
	}
}
